#include "Record.h"

Record::Record( void )
{
}

Record::Record( int id ) 
: id( id )
{
}

Record::Record( const Record& that )
: fields( that.fields ), id( that.id )
{
}

Record& Record::operator=( const Record& that )
{
	if ( this == &that )
	{
		return *this;
	}

	fields = that.fields;
	id = that.id;
	return *this;
}

Record::Field::Field( const wchar_t* name, const Variant& data )
: name( name ), data( data )
{
}

Record::Field::Field( const wstring& name, const Variant& data )
: name( name ), data( data )
{
}

Record::Field::Field( const Record::Field& that )
: name( that.name ), data( that.data )
{
}

Record::Field& Record::Field::operator=( const Record::Field& that )
{
	if ( this == &that )
	{
		return *this;
	}

	name = that.name;
	data = that.data;

	return *this;
}